/*
 * $Id$
 */
package py.windmill.validation;

/**
 *
 * @author myang
 */
public class Required implements Validator {

    @Override
    public boolean validate(final String val) {
        return val != null && val.trim().length() > 0;
    }

    @Override
    public String message() {
        return "required";
    }
    
}
